import { GCellRenderer } from "../../../../../com/mui/controls/GCellRenderer";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
import { DisplayUtil } from "../../../../common/DisplayUtil";
import { Lv70DramaItem } from "../../lv70fb/data/Lv70DramaItem";
import { ItemData } from "../../../resource/info/ItemData";
import { BaseItem } from "../../common/BaseItem";
//class SCSkillRuneItemRender
    
    export  class SCSkillRuneItemRender extends GCellRenderer
    {
        constructor()
        {
            super();
            var loc1=GlobalClass.getBitmap(ImagesConst.PackItemBg);
            loc1.x = 0;
            loc1.y = 0;
            addChildAt(loc1, 0);
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            if (arg1 == 1) 
            {
                DisplayUtil.removeMe(this._item);
                return;
            }
            if (this._item == null) 
            {
                this._item = new Lv70DramaItem();
                this._item.x = 3;
                this._item.y = 2;
            }
            if (this._item.parent == null) 
            {
                this.addChild(this._item);
            }
            this._item.itemData = ItemData(arg1);
            return;
        }

        /* internal */ /* var */_item: BaseItem;
    }
